package com.tencreat.domain.mall;

import com.baomidou.mybatisplus.annotation.*;
import com.tencreat.common.annotation.Excel;
import com.tencreat.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;


/**
 * 海报配置对象 mall_poster
 *
 * @author tencreat
 * @date 2022-01-10
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@ApiModel
@TableName("mall_poster")
public class MallPoster extends BaseEntity<MallPoster> {
    private static final long serialVersionUID = 1L;


    /** $column.columnComment */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "ID")
    private Long id;


    /** 类型 1-分享海报 2-开机广告 */
    @Excel(name = "类型 1-分享海报 2-开机广告")
    @ApiModelProperty(value= "类型 1-分享海报 2-开机广告")
    @TableField("`type`")
    private Integer type;

    /** 商品分享海报 */
    @Excel(name = "商品分享海报")
    @ApiModelProperty(value= "商品分享海报")
    @TableField("`share_url`")
    private String shareUrl;


    /** 用户ID */
    @Excel(name = "用户ID")
    @ApiModelProperty(value= "用户ID")
    @TableField("`user_id`")
    private Long userId;

    /** 排序 */
    @Excel(name = "排序")
    @ApiModelProperty(value= "排序")
    @TableField("`sort_order`")
    private Long sortOrder;

    /** 删除标志（0代表存在 2代表删除） */
    @TableLogic
    @TableField("`del_flag`")
    private String delFlag;



    /** 租户ID */
    @Excel(name = "租户ID")
    @ApiModelProperty(value= "租户ID")
    @TableField("`tenant_id`")
    private Long tenantId;


}
